package com.cjm.one.model.payment.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum RecordType implements BaseEnum {
    /**
     *
     */
    @JsonEnumDefaultValue
    RECHARGE(0, "充值"),
    EXPENSES(1, "支出");

    @EnumValue
    @JsonValue
    private int code;
    private String message;

    RecordType(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
